#include "JWorkingCopiesDir.h"


JWorkingCopiesDir::JWorkingCopiesDir(void)
{
}


JWorkingCopiesDir::~JWorkingCopiesDir(void)
{
}

int JWorkingCopiesDir::Serialize(std::iostream& _strea,int& allSize)
{
    	int classSize = 0,selfSize = 0;
	JSerialize::PutInt(_strea,classSize,selfSize);
        JWorkingCopiesBaseFile::Serialize(_strea,classSize);
        dir.Serialize(_strea,classSize);
        selfSize += classSize;
	JSerialize::Verify(_strea,classSize,-1*selfSize);
	allSize += selfSize;
        return selfSize;
}

void JWorkingCopiesDir::ReSerialize(std::iostream& _strea)
{
    int classSize = JSerialize::GetInt(_strea,sizeof(int));
    JWorkingCopiesBaseFile::ReSerialize(_strea);
    dir.ReSerialize(_strea);
}
